<template>
  <div class="cases box radial-gradient-demo">
    <div class="casecontainer">
      <img
        src="../assets/img/back.png"
        class="back"
        @click="$router.replace('/main')"
      />
      <div class="title">产品案例</div>
      <div class="infobtnbox clmstart">
        <button
          class="infobtn"
          v-for="item in nowlist"
          @click="toLink(item.link)"
        >
          {{ item.name }}
        </button>
      </div>
    </div>
  </div>
</template>
<script>
import { Toast } from "vant";
export default {
  data() {
    return {
      nowlist: [
        {
          name: "上传照片互动",
          link: "http://demos.mahelei.com/mh-upphoto/index.html",
        },
        {
          name: "图片配对",
          link: "http://demos.mahelei.com/mh-ffl/index.html",
        },
      ],
    };
  },
  methods: {
    toLink(e) {
      setTimeout(() => {
        window.location.href = e;
      }, 300);
    },
  },
};
</script>
<style lang="less" scoped>
.cases {
  overflow-y: scroll;
  .casecontainer {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 3;
    .title {
      width: 100%;
      padding-top: 6rem;
      font-size: 2.5rem;
      font-weight: bolder;
      color: #000;
      text-align: center;
    }
    .infobtnbox {
      width: 100%;
      height: auto;
      padding-top: 20rem;
      button{
        margin-bottom: 5rem;
      }
      .infobtn:first-child {
        margin-top: 3rem;
      }
    }
  }
}
</style>
